package com.grechur.wanandroidcompose.http.service

import com.grechur.wanandroidcompose.bean.BaseData
import com.grechur.wanandroidcompose.bean.article.ArticlesBean
import com.grechur.wanandroidcompose.bean.banner.BannerBean
import retrofit2.http.*

interface LoginService {

    @FormUrlEncoded()
    @POST("/user/register")
    suspend fun register(@Field("username") userName: String, @Field("password") passWord: String, @Field("repassword") repassWord: String):BaseData<Any>?

    @FormUrlEncoded()
    @POST("/user/login")
    suspend fun login(@Field("username") userName: String, @Field("password") passWord: String): BaseData<Any>?

    @GET("/user/logout/json")
    suspend fun logout(): BaseData<Any>?
}